package com.rmy.queue.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rmy.queue.mapper.QmsWindowBerrMapper;
import com.rmy.queue.domain.QmsWindowBerr;
import com.rmy.queue.service.IQmsWindowBerrService;

/**
 * 窗口和鹤位屏关联Service业务层处理
 *
 * @author rmy
 * @date 2022-10-07
 */
@Service
public class QmsWindowBerrServiceImpl implements IQmsWindowBerrService
{
    @Autowired
    private QmsWindowBerrMapper qmsWindowBerrMapper;

    /**
     * 查询窗口和鹤位屏关联
     *
     * @param windowId 窗口和鹤位屏关联主键
     * @return 窗口和鹤位屏关联
     */
    @Override
    public QmsWindowBerr selectQmsWindowBerrByWindowId(Long windowId)
    {
        return qmsWindowBerrMapper.selectQmsWindowBerrByWindowId(windowId);
    }

    @Override
    public QmsWindowBerr selectQmsWindowBerrByBerrId(Long berrId) {
        return qmsWindowBerrMapper.selectQmsWindowBerrByBerrId(berrId);
    }

    /**
     * 查询窗口和鹤位屏关联列表
     *
     * @param qmsWindowBerr 窗口和鹤位屏关联
     * @return 窗口和鹤位屏关联
     */
    @Override
    public List<QmsWindowBerr> selectQmsWindowBerrList(QmsWindowBerr qmsWindowBerr)
    {
        return qmsWindowBerrMapper.selectQmsWindowBerrList(qmsWindowBerr);
    }

    /**
     * 新增窗口和鹤位屏关联
     *
     * @param qmsWindowBerr 窗口和鹤位屏关联
     * @return 结果
     */
    @Override
    public int insertQmsWindowBerr(QmsWindowBerr qmsWindowBerr)
    {
        return qmsWindowBerrMapper.insertQmsWindowBerr(qmsWindowBerr);
    }

    /**
     * 修改窗口和鹤位屏关联
     *
     * @param qmsWindowBerr 窗口和鹤位屏关联
     * @return 结果
     */
    @Override
    public int updateQmsWindowBerr(QmsWindowBerr qmsWindowBerr)
    {
        return qmsWindowBerrMapper.updateQmsWindowBerr(qmsWindowBerr);
    }

    /**
     * 批量删除窗口和鹤位屏关联
     *
     * @param windowIds 需要删除的窗口和鹤位屏关联主键
     * @return 结果
     */
    @Override
    public int deleteQmsWindowBerrByWindowIds(Long[] windowIds)
    {
        return qmsWindowBerrMapper.deleteQmsWindowBerrByWindowIds(windowIds);
    }

    /**
     * 删除窗口和鹤位屏关联信息
     *
     * @param windowId 窗口和鹤位屏关联主键
     * @return 结果
     */
    @Override
    public int deleteQmsWindowBerrByWindowId(Long windowId)
    {
        return qmsWindowBerrMapper.deleteQmsWindowBerrByWindowId(windowId);
    }


}
